﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;

namespace ZkSurvey.Web.WS
{
    // Define the bom part object to exchange with the client.
    public class EcObject
    {
        public string code = "";
        public string title = "";
        public string titleshort = "";
        public string dispcode = "";
    }

    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [GenerateScriptType(typeof(EcObject))]
    [ScriptService]
    public class AjaxBom :
        System.Web.Services.WebService
    {
        [WebMethod(true)]
        //[WebMethod(true)] enable session
        public EcObject GetEcPartByCode(int ecID, string code)
        {
            

            return null;
        }

        [WebMethod(true)]
        //[WebMethod(true)] enable session
        public EcObject GetEcFruByCode(int ecID, string code)
        {
            

            return null;
        }
    }
}
